#ifndef _PARAMETERS_HPP
#define	_PARAMETERS_HPP

#include <cmath>


const double PI = acos(-1);

const int MAX_COUNT = 500;
const double SCALE = 0.5;

const int FPS = 30;
const int ESC_CODE = 27;

const int LK_WIN_SIZE = 20;
const int HAND_MASK_SIZE = 19;

const int CALIBRATION_NUM_POINTS = 5;
const double PT_DIST2_THRESHOLD = 7500;

const char* const MAIN_WINDOW = "Babau Handstick";
const char* const DEBUG_WINDOW =  "Babau [DEBUG]";

const char* const MSG_INITIAL =
  "Adjust your seat position and press C for calibration";

const char* const MSG_CALIBRATE =
  "Position your hands, fists closed, and wait";

const char* const MSG_RECALIBRATE =
  "Can't see your hands! Please show me again";

const int MSG_TIMEOUT = 6000;


extern double RECT_WIDTH;
extern double RECT_HEIGHT;
extern double RECT_X_PADDING;
extern double RECT_Y_PADDING;
extern double RECT_HOR_OFFSET;
extern double RECT_VER_OFFSET;

extern double CALIBRATION_TIMEOUT;

extern double HAND_CLOSE_THRESHOLD;   // distance in pixels
extern double HAND_NEUTRAL_THRESHOLD; // distance in pixels
extern double HAND_MIDDLE_THRESHOLD;  // angle in degrees

#endif	/* _PARAMETERS_HPP */
